#!/bin/sh
ifconfig eth0 192.168.111.36

	#添加热插拔机制相关的内容
#	mount -t tmpfs mdev /dev
#	mount -t sysfs sysfs /sys
	#mkdir /dev/pts
	#mount -t devpts devpts /dev/pts
	#echo /sbin/mdev>/proc/sys/kernel/hotplug
	#mdev –s

#这些是搭建跟文件系统的时候就有的
mount -a
mkdir /dev/pts
mount -t devpts devpts /dev/pts
echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s


#/bin/mknod /dev/ttySAC0 c 204 64
#/bin/mknod /dev/ttySAC1 c 204 65
#/bin/mknod /dev/buttons c 232 0
#/bin/mknod /dev/leds    c 231 0

 
#mount /dev/sda1 /mnt/usb
#mount /dev/sda1 /mnt/c         

 
/usr/bin/eGTouchD 

insmod  /driver/matrix_keypad_drv7X7.ko
insmod  /driver/matrix_keypad_dev7X7.ko
insmod  /driver/s5pv210_encoder_drv.ko

source  /etc/profile

#  需要延时 1 秒等待触摸屏驱动加载完成，然后后面的 tslib 的校准脚本才能正常工作
sleep  1

if [  -f  /etc/pointercal ];then
	echo  "tslib is ok!"
else
	/opt/tslib/bin/ts_calibrate
	echo  "run ts_calibrate now!"
fi

auto_update.sh

/usr/local/bin/sshd
echo /usr/local/bin/sshd $?

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/tcrwork/lib

chmod 777 /etc/init.d/rcS
chmod 777 /tcrwork/forkflag.data
chmod 777 /dev/null
chmod 777 /root
chmod 777 /agvwork
chmod 777 /bin/busybox

ros -qws  &





